package themis.flink.riskengine;

public class Rule {
    private String logic; // sum

    private String dimension; // 维度 rcv_account.history

    private String measure; // 测量 amount：总计

    private Integer interval; // 间隔 毫秒

    public String toString() {
        return "Rule{logic='" + this.logic + '\'' + ", dimension='" + this.dimension + '\'' + ", measure='" + this.measure + '\'' + ", interval=" + this.interval + '}';
    }

    public Rule(String key, String dimension, String measure, Integer interval) {
        this.logic = key;
        this.dimension = dimension;
        this.measure = measure;
        this.interval = interval;
    }

    public String getKey() {
        return this.logic;
    }

    public void setKey(String key) {
        this.logic = key;
    }

    public String getDimension() {
        return this.dimension;
    }

    public void setDimension(String dimension) {
        this.dimension = dimension;
    }

    public String getMeasure() {
        return this.measure;
    }

    public void setMeasure(String measure) {
        this.measure = measure;
    }

    public Integer getInterval() {
        return this.interval;
    }

    public void setInterval(Integer interval) {
        this.interval = interval;
    }
}
